package com.hermes.test;

import java.util.List;

import javax.annotation.Resource;

import com.hermes.biz.common.model.item.ItemDO;
import com.hermes.biz.search.deamon.SearchService;
import com.hermes.common.action.AsynBaseAction;

public class GetSult extends AsynBaseAction {
    /**
     * 
     */
//    @Resource
//    SearchService             searchService;
    public List<ItemDO>       itemResultList;
    private static final long serialVersionUID = -6948620029890240116L;
    public String             searchParam;
    public int                pageNO;

    @Override
    public String execute() throws Exception {
        //		searchParam = ParameterParserUtil.getParameter("q");
        //		pageNO =Integer.valueOf(ParameterParserUtil.getParameter("test")).intValue();
        //		itemResultList = new ArrayList<ItemDO>();
        //	    if(searchParam==null||searchParam==""){
        //
        //	    	searchParam = "��";
        //	    	itemResultList = searchService.searchItemByWord(searchParam,ConstantParams.num_per_page);
        //	    }else{
        //	    	itemResultList = searchService.searchItemByWord(searchParam,ConstantParams.num_per_page*pageNO);
        //	    }
        //		
        return SUCCESS;
    }
}
